package banking;

import java.util.Comparator;

public class Compare implements Comparator<Statement> {

	@Override
	public int compare(Statement o1, Statement o2) {
		
		return o1.compareTo(o2);

	}

}

/*		
if (o1.getValue() < o2.getValue()){
	return -1;
}else if (o1.getValue() == o2.getValue()){
	return 0;
}else {
	return 1;
}
*/

/*	@Override
public int compare(Object b1, Object b2) {
    if (b1.getReason() == null && b2.getReason() == null) {
        return 0;
      }
      if (b1.getReason() == null) {
        return 1;
      }
      if (b2.getReason() == null) {
        return -1;
      }
      return b1.getReason().compareTo(b2.getReason());
    }
} */